<%= simple_form_for([:admin,@site_config]) do |f| %>
  <%= render 'shared/error_messages', target: @site_config %>
  <div class="form-group">
      <label class="col-sm-2 control-label">Key</label>
      <div class="col-md-10">
        <%= @site_config.key  %>
      </div>
    </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">说明</label>
    <div class="col-md-10">
      <%= t("site_config.#{@site_config.key}")  %>
    </div>
  </div>
  <%= f.input :value, as: :text, input_html: { class: "span8", rows: "20" } %>
  <div class="form-group">
    <div class="col-md-10 col-sm-offset-2">
      <%= f.submit t("common.save"), class: "btn btn-primary", 'data-disable-with' => t("common.saving") %>
      <a href="<%= admin_site_configs_path %>" class="btn"><%= t("common.cancel") %></a>
    </div>
  </div>
<% end %>
